package com.ccs;

import android.os.Handler;
import android.widget.TextView;
public class Timer implements Runnable{

//	private TestForm f;
    private int i;
    private int c;
    private int m;
   //private AdobeTest f;
/*
    public Timer(){}

    public Timer(//TestForm value){
  //      this.f = value;
        
    }
*/
	public void run() {
		
		 for(m=4;m>=0;m--){
	            for(i=59; i >= 0; i--){
	              
	                try{
	                    Thread.sleep(1000);
	                    threadHandler.sendEmptyMessage(0);
	                }
	                catch(Exception ex){
	                    ex.printStackTrace();
	                }
	            }
	        }
	       
	        //f.timeOver();
	        //Thread.yield();
		
	}
	 private Handler threadHandler = new Handler() {
	        public void handleMessage(android.os.Message msg) {
	         
	
	        		if(i<10){
          
	//        				f.setTime("Timer:" + m + ":0"+i);

	        		}
	        		else{
	  //          		f.setTime("Timer:"+m+":"+i);
	        		}
	} };


}
